package com.registration.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class MedicalRecordBean {
    //病历单
    private Integer  record_id;//病历 ID（自增）
    private Integer     patient_id;//就诊人 ID（外键关联 patient 表）
    private Integer    doctor_id;//接诊医生 ID（外键关联 doctor 表）
    private Integer    order_id;//关联挂号订单 ID（外键关联 registration_order 表，可选）

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date visit_date;//就诊日期
    private String   chief_complaint;//主诉（患者主要症状及持续时间）
    private String   present_illness;//现病史（当前疾病发展过程）
    private String   physical_exam;//体格检查结果
    private String   auxiliary_exam;//辅助检查结果（化验、影像等）
    private String   diagnosis;//诊断结果（疾病名称）
    private String   treatment_plan;//治疗方案（药物、剂量、用法等）
    private String  prescription;//处方内容
    private String  advice;//医嘱（注意事项、复诊要求）
    private Date   next_visit_date;//建议复诊日期
    private Integer  status;//状态（0 - 无效，1 - 有效，默认 1）
    private Date  create_time;//记录创建时间
    private Date update_time;//记录更新时间

    private String dept_name;
    private String doctor_name;
    private String patient_name;


    @Override
    public String toString() {
        return "MedicalRecordBean{" +
                "record_id=" + record_id +
                ", patient_id=" + patient_id +
                ", doctor_id=" + doctor_id +
                ", order_id=" + order_id +
                ", visit_date=" + visit_date +
                ", chief_complaint='" + chief_complaint + '\'' +
                ", present_illness='" + present_illness + '\'' +
                ", physical_exam='" + physical_exam + '\'' +
                ", auxiliary_exam='" + auxiliary_exam + '\'' +
                ", diagnosis='" + diagnosis + '\'' +
                ", treatment_plan='" + treatment_plan + '\'' +
                ", prescription='" + prescription + '\'' +
                ", advice='" + advice + '\'' +
                ", next_visit_date=" + next_visit_date +
                ", status=" + status +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", dept_name='" + dept_name + '\'' +
                ", doctor_name='" + doctor_name + '\'' +
                ", patient_name='" + patient_name + '\'' +
                '}';
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public String getDoctor_name() {
        return doctor_name;
    }

    public void setDoctor_name(String doctor_name) {
        this.doctor_name = doctor_name;
    }

    public String getPatient_name() {
        return patient_name;
    }

    public void setPatient_name(String patient_name) {
        this.patient_name = patient_name;
    }

    public Integer getRecord_id() {
        return record_id;
    }

    public void setRecord_id(Integer record_id) {
        this.record_id = record_id;
    }

    public Integer getPatient_id() {
        return patient_id;
    }

    public void setPatient_id(Integer patient_id) {
        this.patient_id = patient_id;
    }

    public Integer getDoctor_id() {
        return doctor_id;
    }

    public void setDoctor_id(Integer doctor_id) {
        this.doctor_id = doctor_id;
    }

    public Integer getOrder_id() {
        return order_id;
    }

    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

    public Date getVisit_date() {
        return visit_date;
    }

    public void setVisit_date(Date visit_date) {
        this.visit_date = visit_date;
    }

    public String getChief_complaint() {
        return chief_complaint;
    }

    public void setChief_complaint(String chief_complaint) {
        this.chief_complaint = chief_complaint;
    }

    public String getPresent_illness() {
        return present_illness;
    }

    public void setPresent_illness(String present_illness) {
        this.present_illness = present_illness;
    }

    public String getPhysical_exam() {
        return physical_exam;
    }

    public void setPhysical_exam(String physical_exam) {
        this.physical_exam = physical_exam;
    }

    public String getAuxiliary_exam() {
        return auxiliary_exam;
    }

    public void setAuxiliary_exam(String auxiliary_exam) {
        this.auxiliary_exam = auxiliary_exam;
    }

    public String getDiagnosis() {
        return diagnosis;
    }

    public void setDiagnosis(String diagnosis) {
        this.diagnosis = diagnosis;
    }

    public String getTreatment_plan() {
        return treatment_plan;
    }

    public void setTreatment_plan(String treatment_plan) {
        this.treatment_plan = treatment_plan;
    }

    public String getPrescription() {
        return prescription;
    }

    public void setPrescription(String prescription) {
        this.prescription = prescription;
    }

    public String getAdvice() {
        return advice;
    }

    public void setAdvice(String advice) {
        this.advice = advice;
    }

    public Date getNext_visit_date() {
        return next_visit_date;
    }

    public void setNext_visit_date(Date next_visit_date) {
        this.next_visit_date = next_visit_date;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}
